﻿@{
	string FlowID = Request.QueryString["flowid"];
	string StepID = Request.QueryString["stepid"];
	string GroupID = Request.QueryString["groupid"];
	string TaskID = Request.QueryString["taskid"];
	string InstanceID = Request.QueryString["instanceid"];
	string DisplayModel = Request.QueryString["display"] ?? "0";
	string DBConnID = "06075250-30dc-4d32-bf97-e922cb30fac8";
	string DBTable = "TempTest";
	string DBTablePK = "ID";
	string DBTableTitle = "Title";
	Business.Platform.Dictionary BDictionary = new Business.Platform.Dictionary();
	Business.Platform.WorkFlow BWorkFlow = new Business.Platform.WorkFlow();
	Business.Platform.WorkFlowTask BWorkFlowTask = new Business.Platform.WorkFlowTask();
	LitJson.JsonData initData = BWorkFlow.GetFormData(DBConnID, DBTable, DBTablePK, InstanceID);
	string TaskTitle = BWorkFlow.GetFromFieldData(initData, DBTable, DBTableTitle);
}
<link href="~/Platform/WorkFlow/FormDesigner/Forms/Public/flowform.css" rel="stylesheet" type="text/css" />
<script src="~/Platform/WorkFlow/FormDesigner/Forms/Public/common.js" type="text/javascript" ></script>
<input type="hidden" id="Form_ValidateAlertType" name="Form_ValidateAlertType" value="1" />
<input type="hidden" id="TempTest.Title" name="TempTest.Title" value="@(TaskTitle.IsNullOrEmpty() ? BWorkFlow.GetAutoTaskTitle(FlowID, StepID, Request.QueryString["groupid"]) : TaskTitle)" />
<input type="hidden" id="Form_TitleField" name="Form_TitleField" value="TempTest.Title" />
<input type="hidden" id="Form_DBConnID" name="Form_DBConnID" value="06075250-30dc-4d32-bf97-e922cb30fac8" />
<input type="hidden" id="Form_DBTable" name="Form_DBTable" value="TempTest" />
<input type="hidden" id="Form_DBTablePk" name="Form_DBTablePk" value="ID" />
<input type="hidden" id="Form_DBTableTitle" name="Form_DBTableTitle" value="Title" />
<input type="hidden" id="Form_AutoSaveData" name="Form_AutoSaveData" value="1" />
<script type="text/javascript">
	var initData = @Html.Raw(BWorkFlow.GetFormDataJsonString(initData));
	var fieldStatus = @Html.Raw(BWorkFlow.GetFieldStatus(FlowID, StepID));
	var displayModel = '@DisplayModel';
	$(function (){
		formrun.initData(initData, "TempTest", fieldStatus, displayModel);
	});
</script>
<p style="text-align: center;"><br/></p><p><br/></p><p style="text-align: center;"><span style="font-size: 24px;"><strong> <span style="font-size:24px; color:#000000;">@Html.Raw(BWorkFlow.GetFlowName(FlowID.ToGuid()))</span>-<span style="font-size:24px; color:#000000;">@Html.Raw(BWorkFlow.GetStepName(StepID.ToGuid(), FlowID.ToGuid(), true))</span><span style="font-size: 16px;"><span style="font-size: 18px;"> </span></span></strong></span></p><p> <br/></p><table class="flowformtable" cellpadding="0" cellspacing="1"><tbody><tr class="firstRow"><td valign="top" width="513">请假人：<input name="TempTest.UserID" title="" id="TempTest.UserID" value="u_@Business.Platform.Users.CurrentUserID.ToString()" more="0" type1="flow_org" type="text" isflow="1" class="mymember" dept="0" station="0" user="1" workgroup="0" unit="0" rootid=""/></td><td valign="top" width="513">所在部门：<input name="TempTest.DeptID" title="" id="TempTest.DeptID" value="@Business.Platform.Users.CurrentDeptID" more="0" type1="flow_org" isflow="1" class="mymember" dept="1" station="0" user="0" workgroup="0" unit="0" rootid="@BWorkFlowTask.GetFirstSnderDeptID(FlowID.ToGuid(), GroupID.ToGuid())"/></td></tr><tr><td valign="top" width="513">开始时间：<input name="TempTest.Date1" title="" id="TempTest.Date1" value="" type1="flow_datetime" istime="1" defaultvalue="" type="text" isflow="1" class="mycalendar"/></td><td valign="top" width="513">结束时间：<input name="TempTest.Date2" title="" id="TempTest.Date2" value="" type1="flow_datetime" istime="1" defaultvalue="" isflow="1" class="mycalendar"/></td></tr><tr><td valign="top" width="513">请假类型：<input type="radio" name="TempTest.Type" id="TempTest.Type_0" value="0" style="vertical-align:middle;" isflow="1" type1="flow_radio"/><label for="TempTest.Type_0" style="vertical-align:middle;margin-right:3px;">事假</label><input type="radio" name="TempTest.Type" id="TempTest.Type_1" value="1" style="vertical-align:middle;" isflow="1" type1="flow_radio"/><label for="TempTest.Type_1" style="vertical-align:middle;margin-right:3px;">病假</label><input type="radio" name="TempTest.Type" id="TempTest.Type_2" value="2" style="vertical-align:middle;" isflow="1" type1="flow_radio"/><label for="TempTest.Type_2" style="vertical-align:middle;margin-right:3px;">婚假</label><input type="radio" name="TempTest.Type" id="TempTest.Type_3" value="3" style="vertical-align:middle;" isflow="1" type1="flow_radio"/><label for="TempTest.Type_3" style="vertical-align:middle;margin-right:3px;">年假</label><input type="radio" name="TempTest.Type" id="TempTest.Type_4" value="4" style="vertical-align:middle;" isflow="1" type1="flow_radio"/><label for="TempTest.Type_4" style="vertical-align:middle;margin-right:3px;">产假</label><input type="radio" name="TempTest.Type" id="TempTest.Type_5" value="5" style="vertical-align:middle;" isflow="1" type1="flow_radio"/><label for="TempTest.Type_5" style="vertical-align:middle;margin-right:3px;">陪护假</label><input type="radio" name="TempTest.Type" id="TempTest.Type_6" value="6" style="vertical-align:middle;" isflow="1" type1="flow_radio"/><label for="TempTest.Type_6" style="vertical-align:middle;margin-right:3px;">其它</label></td><td valign="top" width="513">请假天数：<input title="" id="TempTest.Days" type1="flow_text" name="TempTest.Days" value="" valuetype="4" type="text" isflow="1" class="mytext"/></td></tr><tr><td colspan="1" rowspan="1" style="word-break: break-all;" valign="top">相关附件：<input title="" type1="flow_files" id="TempTest.test2" name="TempTest.test2" value="" filetype="" type="text" isflow="1" class="myfile"/>  //如病假上传医院证明等</td><td colspan="1" rowspan="1" valign="top"><br/></td></tr><tr><td style="word-break: break-all;" colspan="2" valign="top"><p>请假事由：</p><p><textarea isflow="1" type1="flow_textarea" id="TempTest.Reason" name="TempTest.Reason" class="mytext" style="width: 85%; height: 70px;" maxlength="500"></textarea><span id="_baidu_bookmark_start_0" style="display: none; line-height: 0px;">?</span></p></td></tr></tbody></table><p> </p>